package com.study.lifeCycle;


import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@Configurable
@ComponentScan(basePackages = {"com.study.lifeCycle"})
public class MainConfigLifeCycle {


    @Bean(initMethod = "init" ,destroyMethod = "destroy")
    public Car car(){

        return new Car();
    }
}
